/**
 * ajax 服务路由集合
 */
const router = require('koa-router')({
    prefix: '/flow'
})

const flow = require('../controllers/flow')




//client访问地址是https://www.zzzzzz.com/flow/getAccount

router.get('/getAccount/:address', flow.getAccount)
router.get('/getTransaction/:tx_id', flow.getTransaction)
router.get('/getLatestBlockHeight', flow.getLatestBlockHeight)
router.get('/setupAccount', flow.setupAccount)


router.post('/mint', flow.mint)


module.exports = router
